package com.jxs.tourist.dao;

import com.jxs.tourist.domain.Tourist;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("touristDao")
public interface TouristDao {
    int addTourist(Tourist tourist);
    List<Tourist> getAllTourist();
    Tourist getTouristById(int id);
    String getTouristNameById(int tourist_id);
    List<Tourist> getTouristByCityId(int city_id);
    List<Tourist> searchTouristByName(String name);
    int editTourist(Tourist tourist);
    int delTouristById(int id);
}
